package com.shuoyue.ycgk.utils;

import android.content.Context;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.util.Log;

public class DevicesUtil {
    /***
     * 获取手机型号：
     * @return
     */
    public static String getModel() {
        return android.os.Build.MODEL;
    }

    /**
     * 获取手机厂商
     *
     * @return
     */
    public static String getManuFacturer() {
        return android.os.Build.MANUFACTURER;
    }

//    public static String getIMEI(Context context) {
//        TelephonyManager  telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
//        String deviceId = telephonyManager.getDeviceId();
//        if (deviceId==null){
//            //android.provider.Settings;
//            deviceId= Settings.Secure.getString(context.getApplicationContext().getContentResolver(), Settings.Secure.ANDROID_ID);
//        }
//        Log.e("imei",deviceId+"");
//        return deviceId;
//    }
}
